import request from "@/utils/request";

// token
const access_token = 'c494ae44-3adc-48ca-8749-5128a53358d7'
const position ="pc_mainpage";

// 首页请求轮播图
export const reqBannerList = () => {
    return request.get<any,any>(`/promotion/ads/search/findByPosition?access_token=${access_token}&position=${position}`)
}

// 首页请求推荐列表
export const reqRecommendList = (pageSize:any,pageNum:any) =>{
    return request.get<any,any>(`/moment/moments/rec/default?access_token=${access_token}&column=recommend&pageSize=${pageSize}&pageNum=${pageNum}`)
}

// 首页请求作品综合榜列表
export const reqComprehensiveList = (pageSize:any,pageNum:any) => {
    return request.get<any,any>(`/moment/moments/collect/original/integrated?access_token=${access_token}&pageSize=${pageSize}&pageNum=${pageNum}&column=original`)
}
// 首页请求作品热练榜列表
export const reqHotExerciseList = (pageSize:any,pageNum:any) => {
    return request.get<any,any>(`/moment/moments/collect/original/popTraining?access_token=${access_token}&pageSize=${pageSize}&pageNum=${pageNum}&column=original`)
}
// 首页请求作品新锐榜列表
export const reqNewRuiList = (pageSize:any,pageNum:any) => {
    return request.get<any,any>(`moment/moments/collect/original/newcomer?access_token=${access_token}&pageSize=${pageSize}&pageNum=${pageNum}&column=original`)
}
// 首页请求作品最新榜列表
export const reqNewsList = (pageSize:any,pageNum:any) => {
    return request.get<any,any>(`/moment/moments/collect/original/newcomer?access_token=${access_token}&pageSize=${pageSize}&pageNum=${pageNum}&column=original`)
}

// 首页获取多条件过滤
export const reqMostFilterData = (pageSize:any,pageNum:any) => {
    return request.post<any,any>(`/moment/moments/collect/original/lastest?access_token=${access_token}&pageSize=${pageSize}&pageNum=${pageNum}&column=original`)
}

// 首页获取教程综合列表
export const reqCourseList = (pageSize:any,pageNum:any) => {
    return request.get<any,any>(`/moment/moments/collect/course/integrated?access_token=${access_token}&pageSize=${pageSize}&pageNum=${pageNum}&column=course`)
}

// 首页获取教程可隐藏动态条件
export const reqScreeningList = () => {
    return request.get<any,any>(`/moment/properties/filter/original?access_token=${access_token}`)
}
